<tagLib name="strends" />
<include file="Public:header" />
<script>
	function showtype(typeid){
		if(typeid==1){
			$(".content").hide();
		}else{
			$(".content").show();
		}
	}
</script>
<div class="handle-btns">
	<strends:linkBtn text="{%RETURN_LIST}" href="{:Cookie::get('returnUrl')}" />
</div>
<form method='post' id="form" name="form" action="{:U(MODULE_NAME.'/insert')}" enctype="multipart/form-data">
<table cellpadding="4" cellspacing="0" border="0" class="table-form">
	<tr>
		<th width="150">{%SHOW_TYPE}</th>
		<td>
			<input type="radio" name="show_type" checked value="0" onchange="showtype(1)"/>{%SHOW_TYPE_1}
			<input type="radio" name="show_type" value="1" onchange="showtype(2)"/>{%SHOW_TYPE_2}
		</td>
	</tr>
	<tr class="grid">
		<th>{%GRID}</th>
		<td>
			<textarea class="areainput" name="grid" rows="30"></textarea>
		</td>
	</tr>	
	<tr class="content" style="display:none;">
		<th>{%TITLE}</th>
		<td>
			<input type="text" class="textinput" name="title" style="width:460px;" value=""/>
		</td>
	</tr>
	<tr class="content" style="display:none;">
		<th>{%CURL}</th>
		<td>
			<input type="text" class="textinput" name="curl" style="width:460px;" value=""/>
		</td>
	</tr>
	<tr class="content" style="display:none;">
		<th>{%IMGS}</th>
		<td>
			<input type="file" class="textinput" name="imgs" value=""/>
		</td>
	</tr>
	
	<tr>
		<th>{%SORT}</th>
		<td>
			<input type="text" class="textinput" name="sort" rows="5" value="100"/>
		</td>
	</tr>
	
	<tr class="act">
		<th>&nbsp;</th>
		<td>
			<input type="submit" class="submit_btn" value="{%ADD_SUBMIT}" />
			<input type="reset" class="reset_btn" value="{%RESET}" />
		</td>
	</tr>
</table>
</form>

<include file="Public:footer" />